/* 打包时间：2025-11-29 21:10:27 */
(function(){
  try{
    var bridge = null;
    try{ bridge = runtime && runtime.accessibilityBridge; }catch(e){}
    if(!bridge){
      try{
        var m = runtime.getClass().getDeclaredMethod("getAccessibilityBridge");
        m.setAccessible(true);
        bridge = m.invoke(runtime);
      }catch(e){}
    }
    if(!bridge){ return; }
    try{
      var WF = Packages.com.stardust.autojs.core.accessibility.AccessibilityBridge$WindowFilter;
      bridge.setWindowFilter(new JavaAdapter(WF,{ filter:function(info){ return true; } }));
    }catch(e){}
  }catch(e){}
})();
module['exports'] = function (_0xabf334) {
    var _0x32862a = {};
    function _0xc5de4a(_0x47a1d5) {
        if (_0x32862a[_0x47a1d5])
            return _0x32862a[_0x47a1d5]['exports'];
        var _0x3027a6 = _0x32862a[_0x47a1d5] = {
            'i': _0x47a1d5,
            'l': ![],
            'exports': {}
        };
        return _0xabf334[_0x47a1d5]['call'](_0x3027a6['exports'], _0x3027a6, _0x3027a6['exports'], _0xc5de4a), _0x3027a6['l'] = !![], _0x3027a6['exports'];
    }
    return _0xc5de4a['m'] = _0xabf334, _0xc5de4a['c'] = _0x32862a, _0xc5de4a['d'] = function (_0xfdc3aa, _0x241f41, _0x15c638) {
        !_0xc5de4a['o'](_0xfdc3aa, _0x241f41) && Object['defineProperty'](_0xfdc3aa, _0x241f41, {
            'enumerable': !![],
            'get': _0x15c638
        });
    }, _0xc5de4a['r'] = function (_0x3c1097) {
        typeof Symbol !== 'undefined' && Symbol['toStringTag'] && Object['defineProperty'](_0x3c1097, Symbol['toStringTag'], { 'value': 'Module' }), Object['defineProperty'](_0x3c1097, '__esModule', { 'value': !![] });
    }, _0xc5de4a['t'] = function (_0x1bfc2a, _0x1425f2) {
        if (_0x1425f2 & 0x1)
            _0x1bfc2a = _0xc5de4a(_0x1bfc2a);
        if (_0x1425f2 & 0x8)
            return _0x1bfc2a;
        if (_0x1425f2 & 0x4 && typeof _0x1bfc2a === 'object' && _0x1bfc2a && _0x1bfc2a['__esModule'])
            return _0x1bfc2a;
        var _0x12ea7c = Object['create'](null);
        _0xc5de4a['r'](_0x12ea7c), Object['defineProperty'](_0x12ea7c, 'default', {
            'enumerable': !![],
            'value': _0x1bfc2a
        });
        if (_0x1425f2 & 0x2 && typeof _0x1bfc2a != 'string') {
            for (var _0x367801 in _0x1bfc2a)
                _0xc5de4a['d'](_0x12ea7c, _0x367801, function (_0x49bad1) {
                    return _0x1bfc2a[_0x49bad1];
                }['bind'](null, _0x367801));
        }
        return _0x12ea7c;
    }, _0xc5de4a['n'] = function (_0x357204) {
        var _0x580a42 = _0x357204 && _0x357204['__esModule'] ? function _0x248447() {
            return _0x357204['default'];
        } : function _0x14d85d() {
            return _0x357204;
        };
        return _0xc5de4a['d'](_0x580a42, 'a', _0x580a42), _0x580a42;
    }, _0xc5de4a['o'] = function (_0x146ca9, _0x5380f6) {
        return Object['prototype']['hasOwnProperty']['call'](_0x146ca9, _0x5380f6);
    }, _0xc5de4a['p'] = '', _0xc5de4a(_0xc5de4a['s'] = 0x14);
}({
    0x0: function (_0x1944c0, _0x56602e) {
        _0x1944c0['exports'] = require('./lib.js');
    },
    0x1: function (_0x9e3b3c, _0x56c6f8) {
        _0x9e3b3c['exports'] = require('./datastore.js');
    },
    0x2: function (_0x4e64a0, _0x5d0819) {
        _0x4e64a0['exports'] = require('./log.js');
    },
    0x14: function (_0x3c86e0, _0x238f68, _0x39a5dc) {
        var _0x15beb0 = {};
        const _0x4d93fb = _0x39a5dc(0x1), {toastLog: _0x1c526d} = _0x39a5dc(0x2);
        _0x3c86e0['exports'] = _0x15beb0, _0x15beb0['setGlobalLogConfig'] = function (_0xa15f61, _0x5104f2) {
            let _0x2e861b = files['join'](_0xa15f61, _0x5104f2);
            try {
                return console['setGlobalLogConfig']({
                    'file': _0x2e861b,
                    'maxBackupSize': 0x5,
                    'maxFileSize': 0x400 * 0x400,
                    'rootLevel': 'ALL'
                }), console['info']('[consolefile|L15]', '现有存储路径' + _0x2e861b + ',设置日志存储成功!'), !![];
            } catch (_0x1e7990) {
                return console['warn']('[consolefile|L18]', '现有存储路径' + _0x2e861b + ',设置日志存储失败:', _0x1e7990), _0x1c526d('请在首页-(右滑)->基础配置页->选择微信存储位置'), ![];
            }
        }, _0x15beb0['initLogFile'] = function () {
            var {
                    formatDate: _0x26d55d,
                    getSavePathList: _0x5606ec
                } = _0x39a5dc(0x0), _0x8d89a6 = _0x5606ec(), _0x279599 = _0x4d93fb['get']('savePath');
            _0x279599 && files['isDir'](_0x279599) && _0x8d89a6['unshift'](_0x279599);
            let _0x358fb4 = _0x26d55d('time')['split'](':')['join']('-') + '_' + _0x26d55d('date') + '_日志.txt';
            for (let _0x2163d2 of _0x8d89a6) {
                if (_0x15beb0['setGlobalLogConfig'](_0x2163d2, _0x358fb4)) {
                    _0x4d93fb['put']('CurrentLogFilePath', files['join'](_0x2163d2, _0x358fb4));
                    break;
                }
            }
        }, _0x15beb0['getConsoleFile'] = function (_0x4d2ae1) {
            let _0x3daf55 = files['listDir'](_0x4d2ae1, function (_0x2e745c) {
                    if (!_0x2e745c['endsWith']('_日志.txt'))
                        return ![];
                    let _0x5e0651 = _0x2e745c['split']('_')[0x1];
                    return new Date(_0x5e0651)['getDate']() == _0x5e0651['substring'](_0x5e0651['length'] - 0x2);
                }), _0x3c129b = Array['from'](_0x3daf55);
            return _0x3c129b['length'] > 0x1 && (_0x3c129b = _0x3c129b['sort'](function (_0xddd86c, _0x53ebf3) {
                var _0x537dd2 = new Date(_0xddd86c['split']('_')[0x1])['getTime'](), _0x1c5dc3 = new Date(_0x53ebf3['split']('_')[0x1])['getTime'](), _0x1178ec = ![];
                if (_0x537dd2 < _0x1c5dc3)
                    _0x1178ec = !![];
                else {
                    if (_0x537dd2 > _0x1c5dc3)
                        _0x1178ec = ![];
                    else {
                        var _0x4de93b = parseInt(_0xddd86c['split'](':')[0x0], 0xa), _0x527236 = parseInt(_0x53ebf3['split'](':')[0x0], 0xa);
                        _0x1178ec = _0x4de93b < _0x527236 ? !![] : ![];
                    }
                }
                return _0x1178ec;
            })), _0x3c129b;
        }, _0x15beb0['openConsole'] = function (_0x153d4a) {
            _0x153d4a === void 0x0 && (_0x153d4a = 'view');
            var {getSavePathList: _0x830439} = _0x39a5dc(0x0), _0x241137 = _0x4d93fb['get']('savePath', _0x830439()[0x0]), _0x2f52cc = files['path'](_0x241137);
            files['ensureDir'](_0x2f52cc), _0x2f52cc = files['isDir'](_0x2f52cc) ? _0x2f52cc : files['path']('./');
            var _0x3bed96 = _0x15beb0['getConsoleFile'](_0x2f52cc);
            while (_0x3bed96['length'] > 0xa) {
                let _0x5bc56d = files['join'](_0x2f52cc + '/' + _0x3bed96['pop']());
                if (files['remove'](_0x5bc56d)) {
                } else
                    _0x1c526d('删除失败:' + _0x5bc56d);
            }
            _0x3bed96['splice'](0x0, 0x1, '当前日志');
            const _0x14c636 = '请选择要' + (_0x153d4a === 'view' ? '查看' : '上报') + '的日志';
            dialogs['select'](_0x14c636, _0x3bed96)['then'](_0x1fbff9 => {
                if (_0x1fbff9 === -0x1)
                    toast('取消操作');
                else {
                    if (_0x1fbff9 === 0x0)
                        app['startActivity']('console');
                    else {
                        if (_0x153d4a === 'view')
                            app['viewFile'](_0x2f52cc + '/' + _0x3bed96[_0x1fbff9]);
                        else {
                            const _0x5a50c1 = files['join'](_0x2f52cc, _0x3bed96[_0x1fbff9]);
                            _0x15beb0['reportConsoleLogFile'](_0x5a50c1);
                        }
                    }
                }
            });
        }, _0x15beb0['getDeviceInfo'] = function () {
            var _0x1cd71c = ['当前设备信息如下:'];
            try {
                _0x1cd71c['push']('VX版本' + _0x4d93fb['get']('WXVersion', '暂未获取')), _0x1cd71c['push']('Android版本' + device['release']), _0x1cd71c['push']('AndroidId:\x20' + device['getAndroidId']()), _0x1cd71c['push']('API:\x20' + device['sdkInt']), _0x1cd71c['push']('屏幕宽度:' + device['width']), _0x1cd71c['push']('屏幕高度:' + device['height']), _0x1cd71c['push']('buildId:' + device['buildId']), _0x1cd71c['push']('主板:' + device['board']), _0x1cd71c['push']('制造商:' + device['brand']), _0x1cd71c['push']('型号:' + device['model']), _0x1cd71c['push']('产品名称:' + device['product']), _0x1cd71c['push']('bootloader版本:' + device['bootloader']), _0x1cd71c['push']('硬件名称:' + device['hardware']), _0x1cd71c['push']('唯一标识码:' + device['fingerprint']), _0x1cd71c['push']('Serial:\x20' + device['serial']), _0x1cd71c['push']('Mac:\x20' + device['getMacAddress']()), _0x1cd71c['push']('电量:\x20' + device['getBattery']());
            } catch (_0x5b0fe4) {
                console['error']('[consolefile|L188]', _0x5b0fe4), console['log']('[consolefile|L189]', _0x1cd71c);
            }
            return _0x1cd71c['join']('\x0a');
        }, _0x15beb0['reportConsoleLogFile'] = function (_0x390a65) {
            try {
                !_0x390a65 && (_0x390a65 = _0x4d93fb['get']('CurrentLogFilePath'));
                if (!files['isFile'](_0x390a65)) {
                    toast('文件不存在' + _0x390a65), console['log']('[consolefile|L202]', '文件不存在' + _0x390a65);
                    return;
                }
                const _0x1464ce = _0x15beb0['getDeviceInfo'](), _0x39f93a = '使用功能:' + _0x4d93fb['get']('selectType'), _0x1a5289 = _0x39a5dc(0x5), _0x10d5b0 = '账号信息:' + (_0x1a5289['getBaseValue']('phone') || '暂未激活'), _0x55a6f6 = files['read'](_0x390a65), _0xd8742f = [
                        '日志信息:',
                        '日志路径:' + _0x390a65,
                        '日志内容:\x0a' + _0x55a6f6
                    ]['join']('\x0a'), _0x57fa3f = [
                        _0x1464ce,
                        _0x39f93a,
                        _0x10d5b0,
                        _0xd8742f
                    ], _0x1c6e76 = [
                        '软件信息:',
                        '软件名:' + _0x1a5289['getName'](),
                        '版本号:' + _0x1a5289['getVersionName']()
                    ], _0x58d3b0 = _0x1a5289['getDataValue']('updateTime'), _0x47fdf6 = _0x1a5289['getDataValue']('versions');
                let _0x202df8 = new Date(_0x58d3b0)['getDate'](), _0x1bde0f = new Date(_0x58d3b0)['getMonth']() + 0x1;
                _0x1bde0f = _0x1bde0f < 0xa ? '0' + _0x1bde0f : _0x1bde0f, _0x202df8 = _0x202df8 < 0xa ? '0' + _0x202df8 : _0x202df8, _0x1c6e76['push']('版本更新时间:\x20[' + _0x58d3b0 + ']'), _0x1c6e76['push']('版本更新日期:\x20' + _0x1bde0f + _0x202df8), _0x1c6e76['push']('当前适配版本:\x20[' + _0x47fdf6['join'](',') + ']'), _0x57fa3f['unshift'](_0x1c6e76), app['sendEmail']({
                    'email': ['1021969874@qq.com'],
                    'subject': '[小马微控]报错日志',
                    'text': _0x57fa3f['join']('\x0a==========================\x0a')
                });
            } catch (_0x5fc9f8) {
                console['error']('[consolefile|L242]', _0x5fc9f8);
            }
        };
    },
    0x5: function (_0x455bcf, _0x1c6d6c) {
        _0x455bcf['exports'] = require('./info.js');
    }
});